function gv(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vp={exports:{}},Es={},xp={exports:{}},F={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Bo=Symbol.for("react.element"),yv=Symbol.for("react.portal"),vv=Symbol.for("react.fragment"),xv=Symbol.for("react.strict_mode"),wv=Symbol.for("react.profiler"),Sv=Symbol.for("react.provider"),Tv=Symbol.for("react.context"),Cv=Symbol.for("react.forward_ref"),Ev=Symbol.for("react.suspense"),Pv=Symbol.for("react.memo"),kv=Symbol.for("react.lazy"),Dc=Symbol.iterator;function bv(e){return e===null||typeof e!="object"?null:(e=Dc&&e[Dc]||e["@@iterator"],typeof e=="function"?e:null)}var wp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sp=Object.assign,Tp={};function Lr(e,t,n){this.props=e,this.context=t,this.refs=Tp,this.updater=n||wp}Lr.prototype.isReactComponent={};Lr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Lr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cp(){}Cp.prototype=Lr.prototype;function au(e,t,n){this.props=e,this.context=t,this.refs=Tp,this.updater=n||wp}var lu=au.prototype=new Cp;lu.constructor=au;Sp(lu,Lr.prototype);lu.isPureReactComponent=!0;var Ic=Array.isArray,Ep=Object.prototype.hasOwnProperty,uu={current:null},Pp={key:!0,ref:!0,__self:!0,__source:!0};function kp(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Ep.call(t,r)&&!Pp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,$=N[O];if(0>>1;Oo(Xn,_))Ue<$&&0>o(xn,Xn)?(N[O]=xn,N[Ue]=_,O=Ue):(N[O]=Xn,N[$e]=_,O=$e);else if(Ue<$&&0>o(xn,_))N[O]=xn,N[Ue]=_,O=Ue;else break e}}return M}function o(N,M){var _=N.sortIndex-M.sortIndex;return _!==0?_:N.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,w=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(N){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=N)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function T(N){if(x=!1,m(N),!w)if(n(l)!==null)w=!0,B(C);else{var M=n(u);M!==null&&fe(T,M.startTime-N)}}function C(N,M){w=!1,x&&(x=!1,g(k),k=-1),h=!0;var _=f;try{for(m(M),d=n(l);d!==null&&(!(d.expirationTime>M)||N&&!W());){var O=d.callback;if(typeof O=="function"){d.callback=null,f=d.priorityLevel;var $=O(d.expirationTime<=M);M=e.unstable_now(),typeof $=="function"?d.callback=$:d===n(l)&&r(l),m(M)}else r(l);d=n(l)}if(d!==null)var K=!0;else{var $e=n(u);$e!==null&&fe(T,$e.startTime-M),K=!1}return K}finally{d=null,f=_,h=!1}}var P=!1,E=null,k=-1,R=5,A=-1;function W(){return!(e.unstable_now()-AN||125O?(N.sortIndex=_,t(u,N),n(l)===null&&N===n(u)&&(x?(g(k),k=-1):x=!0,fe(T,_-O))):(N.sortIndex=$,t(l,N),w||h||(w=!0,B(C))),N},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(N){var M=f;return function(){var _=f;f=M;try{return N.apply(this,arguments)}finally{f=_}}}})(jp);Ap.exports=jp;var Fv=Ap.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var zv=v,Ye=Fv;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ha=Object.prototype.hasOwnProperty,Bv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Vc={},Fc={};function $v(e){return Ha.call(Fc,e)?!0:Ha.call(Vc,e)?!1:Bv.test(e)?Fc[e]=!0:(Vc[e]=!0,!1)}function Uv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Hv(e,t,n,r){if(t===null||typeof t>"u"||Uv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Oe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new Oe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Te[t]=new Oe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new Oe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new Oe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Te[e]=new Oe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new Oe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new Oe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new Oe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new Oe(e,5,!1,e.toLowerCase(),null,!1,!1)});var du=/[\-:]([a-z])/g;function fu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(du,fu);Te[t]=new Oe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(du,fu);Te[t]=new Oe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(du,fu);Te[t]=new Oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new Oe(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new Oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new Oe(e,1,!1,e.toLowerCase(),null,!0,!0)});function pu(e,t,n,r){var o=Te.hasOwnProperty(t)?Te[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{ta=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zr(e):""}function Wv(e){switch(e.tag){case 5:return Zr(e.type);case 16:return Zr("Lazy");case 13:return Zr("Suspense");case 19:return Zr("SuspenseList");case 0:case 2:case 15:return e=na(e.type,!1),e;case 11:return e=na(e.type.render,!1),e;case 1:return e=na(e.type,!0),e;default:return""}}function Ya(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case er:return"Fragment";case Jn:return"Portal";case Wa:return"Profiler";case hu:return"StrictMode";case Ga:return"Suspense";case Ka:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Op:return(e.displayName||"Context")+".Consumer";case Mp:return(e._context.displayName||"Context")+".Provider";case mu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gu:return t=e.displayName||null,t!==null?t:Ya(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return Ya(e(t))}catch{}}return null}function Gv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ya(t);case 8:return t===hu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ip(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kv(e){var t=Ip(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ri(e){e._valueTracker||(e._valueTracker=Kv(e))}function _p(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ip(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ui(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Qa(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=un(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vp(e,t){t=t.checked,t!=null&&pu(e,"checked",t,!1)}function Xa(e,t){Vp(e,t);var n=un(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qa(e,t.type,n):t.hasOwnProperty("defaultValue")&&qa(e,t.type,un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $c(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function qa(e,t,n){(t!=="number"||Ui(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jr=Array.isArray;function mr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=oi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var oo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yv=["Webkit","ms","Moz","O"];Object.keys(oo).forEach(function(e){Yv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),oo[t]=oo[e]})});function $p(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||oo.hasOwnProperty(e)&&oo[e]?(""+t).trim():t+"px"}function Up(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=$p(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Qv=ue({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function el(e,t){if(t){if(Qv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function tl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nl=null;function yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rl=null,gr=null,yr=null;function Wc(e){if(e=Ho(e)){if(typeof rl!="function")throw Error(b(280));var t=e.stateNode;t&&(t=Rs(t),rl(e.stateNode,e.type,t))}}function Hp(e){gr?yr?yr.push(e):yr=[e]:gr=e}function Wp(){if(gr){var e=gr,t=yr;if(yr=gr=null,Wc(e),t)for(e=0;e>>=0,e===0?32:31-(s0(e)/a0|0)|0}var ii=64,si=4194304;function eo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ki(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=eo(a):(i&=s,i!==0&&(r=eo(i)))}else s=n&~o,s!==0?r=eo(s):i!==0&&(r=eo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $o(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ft(t),e[t]=n}function d0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=so),ed=String.fromCharCode(32),td=!1;function dh(e,t){switch(e){case"keyup":return F0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function B0(e,t){switch(e){case"compositionend":return fh(t);case"keypress":return t.which!==32?null:(td=!0,ed);case"textInput":return e=t.data,e===ed&&td?null:e;default:return null}}function $0(e,t){if(tr)return e==="compositionend"||!Pu&&dh(e,t)?(e=uh(),Ri=Tu=Qt=null,tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=id(n)}}function gh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yh(){for(var e=window,t=Ui();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ui(e.document)}return t}function ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function q0(e){var t=yh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gh(n.ownerDocument.documentElement,n)){if(r!==null&&ku(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=sd(n,i);var s=sd(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nr=null,ul=null,lo=null,cl=!1;function ad(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cl||nr==null||nr!==Ui(r)||(r=nr,"selectionStart"in r&&ku(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),lo&&Po(lo,r)||(lo=r,r=Xi(ul,"onSelect"),0ir||(e.current=gl[ir],gl[ir]=null,ir--)}function Y(e,t){ir++,gl[ir]=e.current,e.current=t}var cn={},Ne=mn(cn),Ve=mn(!1),In=cn;function Cr(e,t){var n=e.type.contextTypes;if(!n)return cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Fe(e){return e=e.childContextTypes,e!=null}function Zi(){Z(Ve),Z(Ne)}function hd(e,t,n){if(Ne.current!==cn)throw Error(b(168));Y(Ne,t),Y(Ve,n)}function kh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,Gv(e)||"Unknown",o));return ue({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,In=Ne.current,Y(Ne,e),Y(Ve,Ve.current),!0}function md(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=kh(e,t,In),r.__reactInternalMemoizedMergedChildContext=e,Z(Ve),Z(Ne),Y(Ne,e)):Z(Ve),Y(Ve,n)}var kt=null,As=!1,ga=!1;function bh(e){kt===null?kt=[e]:kt.push(e)}function ux(e){As=!0,bh(e)}function gn(){if(!ga&&kt!==null){ga=!0;var e=0,t=G;try{var n=kt;for(G=1;e>=s,o-=s,bt=1<<32-ft(t)+o|n<k?(R=E,E=null):R=E.sibling;var A=f(g,E,m[k],T);if(A===null){E===null&&(E=R);break}e&&E&&A.alternate===null&&t(g,E),p=i(A,p,k),P===null?C=A:P.sibling=A,P=A,E=R}if(k===m.length)return n(g,E),ne&&Tn(g,k),C;if(E===null){for(;kk?(R=E,E=null):R=E.sibling;var W=f(g,E,A.value,T);if(W===null){E===null&&(E=R);break}e&&E&&W.alternate===null&&t(g,E),p=i(W,p,k),P===null?C=W:P.sibling=W,P=W,E=R}if(A.done)return n(g,E),ne&&Tn(g,k),C;if(E===null){for(;!A.done;k++,A=m.next())A=d(g,A.value,T),A!==null&&(p=i(A,p,k),P===null?C=A:P.sibling=A,P=A);return ne&&Tn(g,k),C}for(E=r(g,E);!A.done;k++,A=m.next())A=h(E,g,k,A.value,T),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?k:A.key),p=i(A,p,k),P===null?C=A:P.sibling=A,P=A);return e&&E.forEach(function(D){return t(g,D)}),ne&&Tn(g,k),C}function S(g,p,m,T){if(typeof m=="object"&&m!==null&&m.type===er&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ni:e:{for(var C=m.key,P=p;P!==null;){if(P.key===C){if(C=m.type,C===er){if(P.tag===7){n(g,P.sibling),p=o(P,m.props.children),p.return=g,g=p;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ht&&vd(C)===P.type){n(g,P.sibling),p=o(P,m.props),p.ref=$r(g,P,m),p.return=g,g=p;break e}n(g,P);break}else t(g,P);P=P.sibling}m.type===er?(p=Mn(m.props.children,g.mode,T,m.key),p.return=g,g=p):(T=_i(m.type,m.key,m.props,null,g.mode,T),T.ref=$r(g,p,m),T.return=g,g=T)}return s(g);case Jn:e:{for(P=m.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(g,p.sibling),p=o(p,m.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=Ea(m,g.mode,T),p.return=g,g=p}return s(g);case Ht:return P=m._init,S(g,p,P(m._payload),T)}if(Jr(m))return w(g,p,m,T);if(_r(m))return x(g,p,m,T);pi(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,m),p.return=g,g=p):(n(g,p),p=Ca(m,g.mode,T),p.return=g,g=p),s(g)):n(g,p)}return S}var Pr=jh(!0),Lh=jh(!1),ns=mn(null),rs=null,lr=null,Au=null;function ju(){Au=lr=rs=null}function Lu(e){var t=ns.current;Z(ns),e._currentValue=t}function xl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xr(e,t){rs=e,Au=lr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_e=!0),e.firstContext=null)}function ot(e){var t=e._currentValue;if(Au!==e)if(e={context:e,memoizedValue:t,next:null},lr===null){if(rs===null)throw Error(b(308));lr=e,rs.dependencies={lanes:0,firstContext:e}}else lr=lr.next=e;return t}var Nn=null;function Mu(e){Nn===null?Nn=[e]:Nn.push(e)}function Mh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Mu(t)):(n.next=o.next,o.next=n),t.interleaved=n,It(e,r)}function It(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Wt=!1;function Ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function At(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,It(e,n)}return o=r.interleaved,o===null?(t.next=t,Mu(r)):(t.next=o.next,o.next=t),r.interleaved=t,It(e,n)}function ji(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xu(e,n)}}function xd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function os(e,t,n,r){var o=e.updateQueue;Wt=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,x=a;switch(f=t,h=n,x.tag){case 1:if(w=x.payload,typeof w=="function"){d=w.call(h,d,f);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=x.payload,f=typeof w=="function"?w.call(h,d,f):w,f==null)break e;d=ue({},d,f);break e;case 2:Wt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Fn|=s,e.lanes=s,e.memoizedState=d}}function wd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=va.transition;va.transition={};try{e(!1),t()}finally{G=n,va.transition=r}}function qh(){return it().memoizedState}function px(e,t,n){var r=rn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zh(e))Jh(t,n);else if(n=Mh(e,t,n,r),n!==null){var o=Le();pt(n,e,r,o),em(n,t,r)}}function hx(e,t,n){var r=rn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zh(e))Jh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ht(a,s)){var l=t.interleaved;l===null?(o.next=o,Mu(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Mh(e,t,o,r),n!==null&&(o=Le(),pt(n,e,r,o),em(n,t,r))}}function Zh(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function Jh(e,t){uo=ss=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function em(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xu(e,n)}}var as={readContext:ot,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},mx={readContext:ot,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:Td,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mi(4194308,4,Gh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var n=gt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=px.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:Sd,useDebugValue:$u,useDeferredValue:function(e){return gt().memoizedState=e},useTransition:function(){var e=Sd(!1),t=e[0];return e=fx.bind(null,e[1]),gt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,o=gt();if(ne){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),xe===null)throw Error(b(349));Vn&30||Vh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Td(zh.bind(null,r,i,e),[e]),r.flags|=2048,Mo(9,Fh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=gt(),t=xe.identifierPrefix;if(ne){var n=Nt,r=bt;n=(r&~(1<<32-ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[yt]=t,e[No]=r,cm(e,t,!1,!1),t.stateNode=e;e:{switch(s=tl(n,r),n){case"dialog":q("cancel",e),q("close",e),o=r;break;case"iframe":case"object":case"embed":q("load",e),o=r;break;case"video":case"audio":for(o=0;oNr&&(t.flags|=128,r=!0,Ur(i,!1),t.lanes=4194304)}else{if(!r)if(e=is(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ur(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ne)return Pe(t),null}else 2*pe()-i.renderingStartTime>Nr&&n!==1073741824&&(t.flags|=128,r=!0,Ur(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=oe.current,Y(oe,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return Yu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?He&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function Cx(e,t){switch(Nu(t),t.tag){case 1:return Fe(t.type)&&Zi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kr(),Z(Ve),Z(Ne),_u(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Iu(t),null;case 13:if(Z(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Er()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(oe),null;case 4:return kr(),null;case 10:return Lu(t.type._context),null;case 22:case 23:return Yu(),null;case 24:return null;default:return null}}var mi=!1,be=!1,Ex=typeof WeakSet=="function"?WeakSet:Set,j=null;function ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ce(e,t,r)}else n.current=null}function Nl(e,t,n){try{n()}catch(r){ce(e,t,r)}}var Md=!1;function Px(e,t){if(dl=Yi,e=yh(),ku(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fl={focusedElem:e,selectionRange:n},Yi=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var x=w.memoizedProps,S=w.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?x:lt(t.type,x),S);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(T){ce(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return w=Md,Md=!1,w}function co(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Nl(t,n,i)}o=o.next}while(o!==r)}}function Ms(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Rl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function pm(e){var t=e.alternate;t!==null&&(e.alternate=null,pm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yt],delete t[No],delete t[ml],delete t[ax],delete t[lx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hm(e){return e.tag===5||e.tag===3||e.tag===4}function Od(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Al(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qi));else if(r!==4&&(e=e.child,e!==null))for(Al(e,t,n),e=e.sibling;e!==null;)Al(e,t,n),e=e.sibling}function jl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jl(e,t,n),e=e.sibling;e!==null;)jl(e,t,n),e=e.sibling}var we=null,ut=!1;function Bt(e,t,n){for(n=n.child;n!==null;)mm(e,t,n),n=n.sibling}function mm(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(Ps,n)}catch{}switch(n.tag){case 5:be||ur(n,t);case 6:var r=we,o=ut;we=null,Bt(e,t,n),we=r,ut=o,we!==null&&(ut?(e=we,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):we.removeChild(n.stateNode));break;case 18:we!==null&&(ut?(e=we,n=n.stateNode,e.nodeType===8?ma(e.parentNode,n):e.nodeType===1&&ma(e,n),Co(e)):ma(we,n.stateNode));break;case 4:r=we,o=ut,we=n.stateNode.containerInfo,ut=!0,Bt(e,t,n),we=r,ut=o;break;case 0:case 11:case 14:case 15:if(!be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Nl(n,t,s),o=o.next}while(o!==r)}Bt(e,t,n);break;case 1:if(!be&&(ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ce(n,t,a)}Bt(e,t,n);break;case 21:Bt(e,t,n);break;case 22:n.mode&1?(be=(r=be)||n.memoizedState!==null,Bt(e,t,n),be=r):Bt(e,t,n);break;default:Bt(e,t,n)}}function Dd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ex),t.forEach(function(r){var o=Ox.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function st(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bx(r/1960))-r,10e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,cs=0,H&6)throw Error(b(331));var o=H;for(H|=4,j=e.current;j!==null;){var i=j,s=i.child;if(j.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lpe()-Gu?Ln(e,0):Wu|=n),ze(e,t)}function Cm(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=Le();e=It(e,t),e!==null&&($o(e,t,n),ze(e,n))}function Mx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cm(e,n)}function Ox(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),Cm(e,n)}var Em;Em=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)_e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _e=!1,Sx(e,t,n);_e=!!(e.flags&131072)}else _e=!1,ne&&t.flags&1048576&&Nh(t,ts,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oi(e,t),e=t.pendingProps;var o=Cr(t,Ne.current);xr(t,n),o=Fu(null,t,r,e,o,n);var i=zu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(i=!0,Ji(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ou(t),o.updater=Ls,t.stateNode=o,o._reactInternals=t,Sl(t,r,e,n),t=El(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&bu(t),je(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Ix(r),e=lt(r,e),o){case 0:t=Cl(null,t,r,e,n);break e;case 1:t=Ad(null,t,r,e,n);break e;case 11:t=Nd(null,t,r,e,n);break e;case 14:t=Rd(null,t,r,lt(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),Cl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),Ad(e,t,r,o,n);case 3:e:{if(am(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Oh(e,t),os(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=br(Error(b(423)),t),t=jd(e,t,r,n,o);break e}else if(r!==o){o=br(Error(b(424)),t),t=jd(e,t,r,n,o);break e}else for(Ge=en(t.stateNode.containerInfo.firstChild),Ke=t,ne=!0,ct=null,n=Lh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Er(),r===o){t=_t(e,t,n);break e}je(e,t,r,n)}t=t.child}return t;case 5:return Dh(t),e===null&&vl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,pl(r,o)?s=null:i!==null&&pl(r,i)&&(t.flags|=32),sm(e,t),je(e,t,s,n),t.child;case 6:return e===null&&vl(t),null;case 13:return lm(e,t,n);case 4:return Du(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pr(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),Nd(e,t,r,o,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Y(ns,r._currentValue),r._currentValue=s,i!==null)if(ht(i.value,s)){if(i.children===o.children&&!Ve.current){t=_t(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=At(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),xl(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(b(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),xl(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}je(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,xr(t,n),o=ot(o),r=r(o),t.flags|=1,je(e,t,r,n),t.child;case 14:return r=t.type,o=lt(r,t.pendingProps),o=lt(r.type,o),Rd(e,t,r,o,n);case 15:return om(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:lt(r,o),Oi(e,t),t.tag=1,Fe(r)?(e=!0,Ji(t)):e=!1,xr(t,n),tm(t,r,o),Sl(t,r,o,n),El(null,t,r,!0,e,n);case 19:return um(e,t,n);case 22:return im(e,t,n)}throw Error(b(156,t.tag))};function Pm(e,t){return Zp(e,t)}function Dx(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nt(e,t,n,r){return new Dx(e,t,n,r)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ix(e){if(typeof e=="function")return Xu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mu)return 11;if(e===gu)return 14}return 2}function on(e,t){var n=e.alternate;return n===null?(n=nt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _i(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Xu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case er:return Mn(n.children,o,i,t);case hu:s=8,o|=8;break;case Wa:return e=nt(12,n,t,o|2),e.elementType=Wa,e.lanes=i,e;case Ga:return e=nt(13,n,t,o),e.elementType=Ga,e.lanes=i,e;case Ka:return e=nt(19,n,t,o),e.elementType=Ka,e.lanes=i,e;case Dp:return Ds(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mp:s=10;break e;case Op:s=9;break e;case mu:s=11;break e;case gu:s=14;break e;case Ht:s=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=nt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Mn(e,t,n,r){return e=nt(7,e,r,t),e.lanes=n,e}function Ds(e,t,n,r){return e=nt(22,e,r,t),e.elementType=Dp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ca(e,t,n){return e=nt(6,e,null,t),e.lanes=n,e}function Ea(e,t,n){return t=nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _x(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oa(0),this.expirationTimes=oa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qu(e,t,n,r,o,i,s,a,l){return e=new _x(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=nt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ou(i),e}function Vx(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rm)}catch(e){console.error(e)}}Rm(),Rp.exports=Xe;var zs=Rp.exports;const Ux=jr(zs);var Ud=zs;Ua.createRoot=Ud.createRoot,Ua.hydrateRoot=Ud.hydrateRoot;const Hx="modulepreload",Wx=function(e){return"/"+e},Hd={},Gx=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Wx(i),i in Hd)return;Hd[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===i&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":Hx,s||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),s)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})};var tc={};Object.defineProperty(tc,"__esModule",{value:!0});tc.parse=Jx;tc.serialize=e1;const Kx=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,Yx=/^[\u0021-\u003A\u003C-\u007E]*$/,Qx=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,Xx=/^[\u0020-\u003A\u003D-\u007E]*$/,qx=Object.prototype.toString,Zx=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function Jx(e,t){const n=new Zx,r=e.length;if(r<2)return n;const o=(t==null?void 0:t.decode)||t1;let i=0;do{const s=e.indexOf("=",i);if(s===-1)break;const a=e.indexOf(";",i),l=a===-1?r:a;if(s>l){i=e.lastIndexOf(";",s-1)+1;continue}const u=Wd(e,i,s),c=Gd(e,s,u),d=e.slice(u,c);if(n[d]===void 0){let f=Wd(e,s+1,l),h=Gd(e,l,f);const w=o(e.slice(f,h));n[d]=w}i=l+1}while(in;){const r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function e1(e,t,n){const r=(n==null?void 0:n.encode)||encodeURIComponent;if(!Kx.test(e))throw new TypeError(`argument name is invalid: ${e}`);const o=r(t);if(!Yx.test(o))throw new TypeError(`argument val is invalid: ${t}`);let i=e+"="+o;if(!n)return i;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);i+="; Max-Age="+n.maxAge}if(n.domain){if(!Qx.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);i+="; Domain="+n.domain}if(n.path){if(!Xx.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);i+="; Path="+n.path}if(n.expires){if(!n1(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);i+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.partitioned&&(i+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return i}function t1(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function n1(e){return qx.call(e)==="[object Date]"}var Kd="popstate";function r1(e={}){function t(r,o){let{pathname:i,search:s,hash:a}=r.location;return Il("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Do(o)}return i1(t,n,null,e)}function le(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function St(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function o1(){return Math.random().toString(36).substring(2,10)}function Yd(e,t){return{usr:e.state,key:e.key,idx:t}}function Il(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Dr(t):t,state:n,key:t&&t.key||r||o1()}}function Do({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Dr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function i1(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a="POP",l=null,u=c();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function c(){return(s.state||{idx:null}).idx}function d(){a="POP";let S=c(),g=S==null?null:S-u;u=S,l&&l({action:a,location:x.location,delta:g})}function f(S,g){a="PUSH";let p=Il(x.location,S,g);n&&n(p,S),u=c()+1;let m=Yd(p,u),T=x.createHref(p);try{s.pushState(m,"",T)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(T)}i&&l&&l({action:a,location:x.location,delta:1})}function h(S,g){a="REPLACE";let p=Il(x.location,S,g);n&&n(p,S),u=c();let m=Yd(p,u),T=x.createHref(p);s.replaceState(m,"",T),i&&l&&l({action:a,location:x.location,delta:0})}function w(S){let g=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof S=="string"?S:Do(S);return p=p.replace(/ $/,"%20"),le(g,`No window.location.(origin|href) available to create URL for href: ${p}`),new URL(p,g)}let x={get action(){return a},get location(){return e(o,s)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Kd,d),l=S,()=>{o.removeEventListener(Kd,d),l=null}},createHref(S){return t(o,S)},createURL:w,encodeLocation(S){let g=w(S);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:h,go(S){return s.go(S)}};return x}function Am(e,t,n="/"){return s1(e,t,n,!1)}function s1(e,t,n,r){let o=typeof t=="string"?Dr(t):t,i=dn(o.pathname||"/",n);if(i==null)return null;let s=jm(e);a1(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(le(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let u=jt([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(le(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),jm(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:h1(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Lm(i.path))o(i,s,l)}),t}function Lm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Lm(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function a1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:m1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var l1=/^:[\w-]+$/,u1=3,c1=2,d1=1,f1=10,p1=-2,Qd=e=>e==="*";function h1(e,t){let n=e.split("/"),r=n.length;return n.some(Qd)&&(r+=p1),t&&(r+=c1),n.filter(o=>!Qd(o)).reduce((o,i)=>o+(l1.test(i)?u1:i===""?d1:f1),r)}function m1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function g1(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{if(c==="*"){let w=a[f]||"";s=i.slice(0,i.length-w.length).replace(/(.)\/+$/,"$1")}const h=a[f];return d&&!h?u[c]=void 0:u[c]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function y1(e,t=!1,n=!0){St(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function v1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return St(!1,`The URL path "${e}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function dn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function x1(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Dr(e):e;return{pathname:n?n.startsWith("/")?n:w1(n,t):t,search:C1(r),hash:E1(o)}}function w1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Pa(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function S1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Mm(e){let t=S1(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Om(e,t,n,r=!1){let o;typeof e=="string"?o=Dr(e):(o={...e},le(!o.pathname||!o.pathname.includes("?"),Pa("?","pathname","search",o)),le(!o.pathname||!o.pathname.includes("#"),Pa("#","pathname","hash",o)),le(!o.search||!o.search.includes("#"),Pa("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=x1(o,a),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var jt=e=>e.join("/").replace(/\/\/+/g,"/"),T1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),C1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,E1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function P1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Dm=["POST","PUT","PATCH","DELETE"];new Set(Dm);var k1=["GET",...Dm];new Set(k1);var Ir=v.createContext(null);Ir.displayName="DataRouter";var Bs=v.createContext(null);Bs.displayName="DataRouterState";var Im=v.createContext({isTransitioning:!1});Im.displayName="ViewTransition";var b1=v.createContext(new Map);b1.displayName="Fetchers";var N1=v.createContext(null);N1.displayName="Await";var Tt=v.createContext(null);Tt.displayName="Navigation";var Go=v.createContext(null);Go.displayName="Location";var zt=v.createContext({outlet:null,matches:[],isDataRoute:!1});zt.displayName="Route";var nc=v.createContext(null);nc.displayName="RouteError";function R1(e,{relative:t}={}){le(Ko(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=v.useContext(Tt),{hash:o,pathname:i,search:s}=Yo(e,{relative:t}),a=i;return n!=="/"&&(a=i==="/"?n:jt([n,i])),r.createHref({pathname:a,search:s,hash:o})}function Ko(){return v.useContext(Go)!=null}function yn(){return le(Ko(),"useLocation() may be used only in the context of a component."),v.useContext(Go).location}var _m="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Vm(e){v.useContext(Tt).static||v.useLayoutEffect(e)}function A1(){let{isDataRoute:e}=v.useContext(zt);return e?U1():j1()}function j1(){le(Ko(),"useNavigate() may be used only in the context of a component.");let e=v.useContext(Ir),{basename:t,navigator:n}=v.useContext(Tt),{matches:r}=v.useContext(zt),{pathname:o}=yn(),i=JSON.stringify(Mm(r)),s=v.useRef(!1);return Vm(()=>{s.current=!0}),v.useCallback((l,u={})=>{if(St(s.current,_m),!s.current)return;if(typeof l=="number"){n.go(l);return}let c=Om(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:jt([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}v.createContext(null);function Yo(e,{relative:t}={}){let{matches:n}=v.useContext(zt),{pathname:r}=yn(),o=JSON.stringify(Mm(n));return v.useMemo(()=>Om(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function L1(e,t){return Fm(e,t)}function Fm(e,t,n,r){var g;le(Ko(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=v.useContext(Tt),{matches:i}=v.useContext(zt),s=i[i.length-1],a=s?s.params:{},l=s?s.pathname:"/",u=s?s.pathnameBase:"/",c=s&&s.route;{let p=c&&c.path||"";zm(l,!c||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${l}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let d=yn(),f;if(t){let p=typeof t=="string"?Dr(t):t;le(u==="/"||((g=p.pathname)==null?void 0:g.startsWith(u)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${p.pathname}" was given in the \`location\` prop.`),f=p}else f=d;let h=f.pathname||"/",w=h;if(u!=="/"){let p=u.replace(/^\//,"").split("/");w="/"+h.replace(/^\//,"").split("/").slice(p.length).join("/")}let x=Am(e,{pathname:w});St(c||x!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),St(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let S=_1(x&&x.map(p=>Object.assign({},p,{params:Object.assign({},a,p.params),pathname:jt([u,o.encodeLocation?o.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?u:jt([u,o.encodeLocation?o.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),i,n,r);return t&&S?v.createElement(Go.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},S):S}function M1(){let e=$1(),t=P1(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:i},"ErrorBoundary")," or"," ",v.createElement("code",{style:i},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,s)}var O1=v.createElement(M1,null),D1=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?v.createElement(zt.Provider,{value:this.props.routeContext},v.createElement(nc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function I1({routeContext:e,match:t,children:n}){let r=v.useContext(Ir);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(zt.Provider,{value:e},n)}function _1(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,i=n==null?void 0:n.errors;if(i!=null){let l=o.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id])!==void 0);le(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,l+1))}let s=!1,a=-1;if(n)for(let l=0;l=0?o=o.slice(0,a+1):o=[o[0]];break}}}return o.reduceRight((l,u,c)=>{let d,f=!1,h=null,w=null;n&&(d=i&&u.route.id?i[u.route.id]:void 0,h=u.route.errorElement||O1,s&&(a<0&&c===0?(zm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,w=null):a===c&&(f=!0,w=u.route.hydrateFallbackElement||null)));let x=t.concat(o.slice(0,c+1)),S=()=>{let g;return d?g=h:f?g=w:u.route.Component?g=v.createElement(u.route.Component,null):u.route.element?g=u.route.element:g=l,v.createElement(I1,{match:u,routeContext:{outlet:l,matches:x,isDataRoute:n!=null},children:g})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?v.createElement(D1,{location:n.location,revalidation:n.revalidation,component:h,error:d,children:S(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):S()},null)}function rc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function V1(e){let t=v.useContext(Ir);return le(t,rc(e)),t}function F1(e){let t=v.useContext(Bs);return le(t,rc(e)),t}function z1(e){let t=v.useContext(zt);return le(t,rc(e)),t}function oc(e){let t=z1(e),n=t.matches[t.matches.length-1];return le(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function B1(){return oc("useRouteId")}function $1(){var r;let e=v.useContext(nc),t=F1("useRouteError"),n=oc("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function U1(){let{router:e}=V1("useNavigate"),t=oc("useNavigate"),n=v.useRef(!1);return Vm(()=>{n.current=!0}),v.useCallback(async(o,i={})=>{St(n.current,_m),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var Xd={};function zm(e,t,n){!t&&!Xd[e]&&(Xd[e]=!0,St(!1,n))}v.memo(H1);function H1({routes:e,future:t,state:n}){return Fm(e,void 0,n,t)}function no(e){le(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function W1({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){le(!Ko(),"You cannot render a inside another . You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),a=v.useMemo(()=>({basename:s,navigator:o,static:i,future:{}}),[s,o,i]);typeof n=="string"&&(n=Dr(n));let{pathname:l="/",search:u="",hash:c="",state:d=null,key:f="default"}=n,h=v.useMemo(()=>{let w=dn(l,s);return w==null?null:{location:{pathname:w,search:u,hash:c,state:d,key:f},navigationType:r}},[s,l,u,c,d,f,r]);return St(h!=null,` is not able to match the URL "${l}${u}${c}" because it does not start with the basename, so the won't render anything.`),h==null?null:v.createElement(Tt.Provider,{value:a},v.createElement(Go.Provider,{children:t,value:h}))}function G1({children:e,location:t}){return L1(_l(e),t)}function _l(e,t=[]){let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,_l(r.props.children,i));return}le(r.type===no,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),le(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=_l(r.props.children,i)),n.push(s)}),n}var Vi="get",Fi="application/x-www-form-urlencoded";function $s(e){return e!=null&&typeof e.tagName=="string"}function K1(e){return $s(e)&&e.tagName.toLowerCase()==="button"}function Y1(e){return $s(e)&&e.tagName.toLowerCase()==="form"}function Q1(e){return $s(e)&&e.tagName.toLowerCase()==="input"}function X1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function q1(e,t){return e.button===0&&(!t||t==="_self")&&!X1(e)}var vi=null;function Z1(){if(vi===null)try{new FormData(document.createElement("form"),0),vi=!1}catch{vi=!0}return vi}var J1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ka(e){return e!=null&&!J1.has(e)?(St(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Fi}"`),null):e}function ew(e,t){let n,r,o,i,s;if(Y1(e)){let a=e.getAttribute("action");r=a?dn(a,t):null,n=e.getAttribute("method")||Vi,o=ka(e.getAttribute("enctype"))||Fi,i=new FormData(e)}else if(K1(e)||Q1(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a